package com.power.sifa.info.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.info.model.Law_pubunit;
import com.power.sifa.info.model.pageInfo.Law_pubunitPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  法律发布机关 Feign
 */
public interface ILaw_pubunitFeign {

    /**
     * 法律发布机关分页列表
     */
    @PostMapping("/law_pubunit/list")
    ResponseDTO list(@RequestBody Law_pubunitPageInfo law_pubunitPageInfo);

    /**
     * 法律发布机关全部列表查询
     */
    @PostMapping("/law_pubunit/allList")
    ResponseDTO allList();

    /**
    * 查看法律发布机关
    */
    @GetMapping("/law_pubunit/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除法律发布机关
    */
    @PostMapping("/law_pubunit/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看法律发布机关 复合主键使用
    // */
    //@PostMapping("/law_pubunit/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Law_pubunit.Law_pubunitPK pk);

    /**
     * 修改或保存法律发布机关
     */
    @PostMapping("/law_pubunit/save")
    ResponseDTO save(@RequestBody Law_pubunit  law_pubunit);

    ///**
    // * 删除法律发布机关 复合主键使用
    // */
    //@PostMapping("/law_pubunit/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Law_pubunit.Law_pubunitPK pk);
    
    /**
     * 批量删除法律发布机关
     */
    @PostMapping("/law_pubunit/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/law_pubunit/output")
    void output(HttpServletResponse response, @RequestBody Law_pubunitPageInfo law_pubunitPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/law_pubunit/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/law_pubunit/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;
    
}
